package controllers

import (
//	"fmt"
//	"strconv"
//	"strings"
//	"time"
//"gitee.com/tangrx/beego"
)

type MainController struct {
	CommonController
}

func (c *MainController) Get() {
	c.Data["Website"] = "beego.me"
	c.Data["Email"] = "astaxie@gmail.com"
	c.TplName = "index.tpl"
}

// https://github.com/george518/PPGo_ApiAdmin/blob/master/controllers/login.go
func (c *MainController) Login() {
	//c.TplName = "main/login.html"
	c.view()
}
func (c *MainController) AjaxLogin() {
	c.ajaxMsg("001", "密码错误！！")
}

// 没有权限
func (c *MainController) NoAuth() {
	c.Ctx.WriteString("没有权限")
}
